package com.lemonfish.pojo.entity;

import java.util.Date;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 订单 Entity定义
* @author Lemonfish
* @version 1.0
* @date 2020-03-14
* Copyright © Chao Zhang
*/
@ApiModel(value = "订单")
@Getter @Setter @Accessors(chain = true)
public class Orderlist extends BaseCustomEntity {
    private static final long serialVersionUID = 8439635627974842783L;


    // 订单价格
    @ApiModelProperty(value="订单价格", example = "1.0")
    @TableField()
    private Double price;

    // 是否支付
    @ApiModelProperty(value="是否支付", example = "true")
    @TableField()
    private Boolean isPaid;

    // 是否发货
    @ApiModelProperty(value="是否发货", example = "true")
    @TableField()
    private Boolean isSent;

    // 发货地址
    @ApiModelProperty(value="发货地址", example = "广东省惠州市惠阳区")
    @Length(max=200, message="发货地址长度应小于200")
    @TableField()
    private String consigneeAddr;

}
